import { ElMessage, ElMessageBox } from 'element-plus'

// 替代 element-ui 的消息提示
export const Message = {
  success(message) {
    ElMessage.success(message)
  },
  warning(message) {
    ElMessage.warning(message)
  },
  error(message) {
    ElMessage.error(message)
  },
  info(message) {
    ElMessage.info(message)
  }
}

// 替代 element-ui 的确认框
export const MessageBox = {
  confirm(message, title, options) {
    return ElMessageBox.confirm(message, title, options)
  },
  alert(message, title, options) {
    return ElMessageBox.alert(message, title, options)
  }
} 